{% extends "base.html" %}
{% block title %}
    首页
{% endblock %}
{% block head %}
    <!-- Bootstrap Core CSS -->
    <link href="/static/lib/sb-admin/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/static/lib/sb-admin/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/static/lib/sb-admin/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/static/lib/sb-admin/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <link href="/static/css/index.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

{% endblock %}
{% block label %}
    <h1 class="page-header">
        <h1 class="page-header">首页</h1>
    </h1>
{% endblock %}
{% block contenter %}
    <div id="show"></div>
    <div class="col-lg-6">
        <div class="panel panel-default">
            <div class="panel-heading">
                公司新闻
                {% if show().news %}
                    <a class="pull-right" href="/oa_system/news/">查看更多...</a>
                {% endif %}
            </div>
            <div class="panel-body">
                {% for n in N_list %}
                    <div class="col-lg-6"><a href="/oa_system/news/{{ n.id }}/">{{ n.title }}</a></div>
                    <div class="col-lg-6 text-right">{{ n.publish_time }}</div>
                {% endfor %}
            </div>
        </div>
    </div>
    <div class="col-lg-6">
        <div class="panel panel-default">
            <div class="panel-heading">
                考勤情况
                <a class="pull-right" href="/oa_system/attendance_me/">查看更多...</a>
            </div>
            <div class="panel-body">
                {% for A in A_list %}
                    <div class="col-lg-6">请{{ A.type }}{{ A.a_length }}天</div>
                    <div class="col-lg-6 text-right">{{ A.status }}</div>
                {% endfor %}
            </div>
        </div>
    </div>
{% endblock %}
{% block body %}
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="/static/lib/sb-admin/vendor/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="/static/lib/sb-admin/vendor/bootstrap/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="/static/lib/sb-admin/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="/static/lib/sb-admin/dist/js/sb-admin-2.js"></script>

    <script src="/static/lib/echarts/js/echarts.min.js"></script>

    <script src="/static/js/index.js"></script>

{% endblock %}
